<?php
namespace app\organize\model;

use think\Model;

class user extends Model
{
	/**
     * 获取成员
     * @return mixed
     */
    public static function getDepartmentList( $id )
    {
        $result = cache('department_list');
        if (!$result) {
            $result = self::all($map);
            if (!$result) {
            	cache('department_list', $result);
            }
        }
        return $result;
    }
}